/*
 * Licensed under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.submarine.common;

/**
 * 
 * @file org.submarine.common.Constants.java
 *
 * 常量类
 * 
 * @author gaojian
 * @created 2013-8-17 下午11:08:02
 * @version 0.0.1
 * @since 0.0.1
 *
 */
public final class Constants {
	
	private Constants() {}
	
	public static String PROPERTIES_FILE = "submarine.properties";
	
	public static int DEFAULT_SERVERPORT = 5880;
	
	public static String APPLICATION_PORT_KEY = "submarine.application.port";
	
	public static String APPLICATION_NAME_KEY = "submarine.registry.address";
	
	public static String APPLICATION_SIDE_KEY = "submarine.application.side";
	
	public static String AGENT_APPLICATION_SIDE = "agent";
	
	public static String COLLECTOR_APPLICATION_SIDE = "collector";
	
	public static String REGISTRY_ADDRESS_KEY = "submarine.registry.address";
	
	public static String ROOT_PATH = "/Submarine";
	
	public static String ROOT_AGENT_PATH = "/Submarine/agent";
	
	public static String ROOT_COLLECTOR_PATH = "/Submarine/collector";
	
	public static String FILE_SEPARATOR = "/";
	
	public static String ENGLISH_COLON = ":";
	
	public static int CONNECTIONT_IMEOUT = 60 * 1000;
	
	public static int DEFAULT_REGISTRY_RETRY_PERIOD = 5 * 1000;
	
	public static String DEFAULT_CHARSET_NAME = "UTF-8";
	
	public static int DEFAULT_RETYR_TIMES = 3;
	
	public static final String DEFAULT_CONFIG_LOCATION = "classpath*:META-INF/config/*.xml";

}
